package com.linkage.educloud.ah.mvp;


import com.zhouyou.http.model.HttpParams;

/**
 * <desc>
 * Created by The Moss on 2018/7/26.
 */

public interface ICommonContract {

    interface IView extends IBasicView {
        void onSuccessResult(Object data);

        void onFailResult(String msg);
    }

    abstract class IPresenter extends ABasicPresenter {
        public IPresenter(IBasicView iView) {
            super(iView);
        }

        public abstract void request(HttpParams params);

        @Override
        public void onDestory() {
            if (iView != null) {
                iView = null;
            }
        }
    }

    interface IModel<T> extends ICommonModel {
    }
}
